package com.ruoyi.shop.api.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.annotation.ExcelDictFormat;
import lombok.Data;

import java.util.Date;


/**
 * 卖家店铺授权视图对象 erp_seller_store_empower
 *
 * @author erp
 * @date 2023-03-24
 */
@Data
@ExcelIgnoreUnannotated
public class ErpSellerStoreEmpowerVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 店铺名称
     */
    @ExcelProperty(value = "店铺名称")
    private String storeName;

    /**
     * 店铺类型 1公司运营 2代运营 3自运营
     */
    private String storeType;

    /**
     * 店铺邮箱
     */
    @ExcelProperty(value = "店铺邮箱")
    private String storeEmail;

    /**
     * 店铺账户
     */
    @ExcelProperty(value = "店铺账户")
    private String storeUserName;

    /**
     * 店铺密码
     */
    @ExcelProperty(value = "店铺密码")
    private String storePassWord;

    /**
     * 店铺电话
     */
    @ExcelProperty(value = "店铺电话")
    private String storePhone;

    /**
     * 是否授权（0否 1是）
     */
//    @ExcelProperty(value = "是否授权", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=否,1=是")
    private String isEmpower;

    /**
     * 授权时间
     */
    @ExcelProperty(value = "授权时间")
    private Date empowerTime;
    /**
     * 过期时间
     */
    private Date expireTime;

    @ExcelProperty(value = "是否需要退返运费")
    private Integer isRetuenFreight;

    private Integer isAutoPublish;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 乐观锁
     */
    @ExcelProperty(value = "乐观锁")
    private String revision;
    /**
     * 店铺开通时间
     */
    private Date openTime;
    
    /**
     * 上级代理id
     */
    private Long parentAgentId;
    /**
     * 上级公司id
     */
    private Long parentBranchId;

}
